package pingji.controller.submit;

import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pingji.service.submit.SubmitService;

@RestController
@Log
@CrossOrigin(origins = "*")
public class SubmitController {
    @Autowired
    SubmitService service;
    @RequestMapping("submit")
    public SubmitResponseObject submit(@RequestBody SubmitObject so){
        if(so==null){
            return null;
        }
        return service.submit(so);
    }
}
